home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 006 / javlrn2.arc / WORKSHT2.CAS (.txt) < prev   
Encoding:
Javelin Case Study  |  1985-10-01  |  44.7 KB  |  1,146 lines

  1. worksht2
  2. ~0Copyright (c) 1985 Javelin Software Corporation.
  3. S/N   0412345679
  4. Press [F1] for Help.
  5. Version E4.69
  6. Diagram view
  7. Table view
  8. READY
  9. &MORE ON THE JAVELIN WORKSHEET
  10. $This case study shows you more
  11.  features of Javelin's Worksheet view.  
  12.  This case study is a continuation of   
  13.  the one called }
  14. %The Javelin Worksheet}
  15. $- Press [Space] to continue -
  16. $- or press [F1] for Help -
  17.  228K
  18. ~%In this case study, you'll see how to
  19. ~&enter and copy formulas on worksheets.
  20. ~$You will also see how to use two or 
  21. more worksheets}
  22. $ to look at the same
  23. information in different ways.
  24. %Example~
  25. : Chisel & Gouge Furniture Co.
  26. ~&  Chisel & Gouge Furniture Co. builds 
  27. ~"desks, dressers, and tables at two
  28.   locations: Omaha and Topeka.
  29. ~"  Use Javelin worksheets to create
  30. ~#reports examining the production of
  31. each item at each location.
  32. ~#Chisel & Gouge's production data is
  33. $stored in a file called GOUGE.
  34. To load this file, type:
  35. & $/' $F' $L' $}
  36. 'gouge
  37.  DEFINE }
  38.   CLEAR
  39. WINDOW   PRINT
  40. MENU 
  41. ~MDefine variable, building block, worksheet, graph, macro, time pd., settings.
  42.  Delete
  43.  Import ...
  44.  Save
  45.  Load
  46.  FILE
  47. Load a model file from disk.
  48. m view
  49. READY
  50. ~    Filename:
  51. WAIT 
  52. ~    gouge.mdl
  53. C&G Production
  54.  -}?-Jan 1986 Feb 1986 Mar 1986 Apr 1986 May 1986 Jun 1986 Jul 1986 
  55. -Omaha
  56. -  Desks
  57. -  Dressers
  58. -  Tables
  59. -Topeka
  60. -  Desks
  61. -  Dressers
  62. -  Tables
  63.     Formulas for all variables:
  64. Topeka Tables = 
  65.  Monthly data: Januar
  66. Topeka Dressers = 
  67.  Monthly data: Janu
  68. Topeka Desks = 
  69.  Monthly data: January
  70. Omaha Tables = 
  71.  Monthly data: January
  72. Omaha Dressers = 
  73.  Monthly data: Janua
  74. Omaha Desks = 
  75.  Monthly data: January 
  76. READY
  77. ~    gouge.mdl
  78. loaded.
  79. ~%The worksheet in the top window shows
  80. ~#how many of each item were produced
  81. at each location.
  82. &Entering a Formula
  83. ~&All of the variables on this worksheet
  84. %input variables~
  85.  -- that is, they
  86. }%$are defined by data, not by formulas.
  87. ~%Worksheets can show variables defined
  88. by formulas, too.
  89. Let's crea}
  90. $te a new variable called
  91. %Omaha Total~
  92. . This will be the sum of
  93. all items produced in Omaha.
  94. ~ Move the cursor to the row below
  95. Omaha Tables. Press:
  96. Omaha
  97.   Desks
  98. ressers
  99. Tables
  100. ~"To enter a formula in a worksheet:
  101. }%$1. Enter a variable name in a border.
  102. ~$2. Enter an expression in one of the
  103. ~"   variable's cells in the body of
  104.    the worksheet.
  105. }%$This creates a formula by setting the
  106. ~!variable equal to the expression.
  107. ~%Follow these steps to enter a formula
  108. for Omaha Total.
  109. ~"First, type two spaces, then enter
  110. %Total~
  111.  in the left border:
  112. '[Space]
  113. '[Space]
  114. 'Total
  115. Total
  116. WAIT 
  117. READY
  118. Total
  119. ~!Now move the cursor to the right:
  120. Omaha Total:
  121. ~"In this cell, we want to enter the
  122. following expression:
  123. %Omaha Desks +
  124. %Omaha Dressers + Omaha Tables~
  125. ~"This expression will calculate the
  126. value of Omaha Total.
  127. &Using the POINT Key
  128. }"$Rather then type in the expression
  129. ~%for Omaha Total directly, you can use
  130. ~%the POINT key, [F4], to point to each
  131. variable with the curs}
  132. ~&Press the POINT key to begin pointing:
  133. '[F4]
  134. Omaha Total:
  135. POINT
  136. Omaha Total
  137. When you}
  138. $ press
  139. $key, the
  140. ~%variable at the cursor appears on the
  141. ~#edit line at the top of the screen.
  142. ~#Watch the edit line as you move the
  143. cursor to }
  144. %Omaha Desks~
  145. , the first
  146. ~"variable in the expression. Press:
  147. Omaha Tables
  148. Omaha Dressers
  149. Omaha Desks
  150. ~"As you move the cursor to point to
  151. ~ Omaha Desks, Javelin copies each
  152. variable name to the edit line.
  153. ~!Now type a plus sign and move the
  154. $point to the next variable,
  155. Omaha Dressers:
  156. Omaha Dressers
  157. ~ Typing a plus sign (or any other
  158. ~%operator) selects the variable at the
  159. ~!cursor. You can then point to the
  160. next variable you want in the
  161. expression.
  162. ~!The POINT indicator on the status
  163. ~!line reminds you that you are sti
  164. }    $pointing.
  165. ~%o finish the expression, type another
  166. ~%plus sign and point to Omaha Tables: 
  167. & $+' $
  168. Omaha Tables
  169. ~$Now that the expression is complete,
  170. ~!press 
  171.  to enter the expression
  172. and stop pointing:
  173. READY
  174. #CALC
  175. #CALC
  176. #CALC
  177. #CALC
  178. #CALC
  179. #CALC
  180. #CALC
  181. WAIT 
  182. ~&Topeka Tables = 
  183.  Monthly data: Januar
  184. Dressers = 
  185.  Monthly data: Janu
  186. esks = 
  187.  Monthly data: January
  188. ~&Omaha Total = Omaha Desks+Omaha Dresse
  189. READY
  190. ~4Omaha Total: Omaha Desks+Omaha Dressers+Omaha Tables
  191. ~ Look at the Formulas view in the
  192. ~"bottom window. You can see part of
  193. $the formula for Omaha Total.
  194. ~$You created this formula by entering
  195. ~$an expression for Omaha Total in the
  196. body of the worksheet.
  197. ~"The information line at the top of
  198. ~$the screen shows you how the formula
  199. appears in the worksheet.
  200. see the variable you defined,
  201. ~$Omaha Total, followed by a colon (:)
  202. ~#and the expression that defines it.
  203. ~!#CALCs in the worksheet mean that
  204. ~ variable is not yet calculated. 
  205. ~!To calculate the model, press the
  206. ~    CALC key:
  207. '[F9]
  208. WAIT 
  209.   409
  210.   401
  211.   402
  212.   400
  213.   414
  214.   409
  215.   401
  216. READY
  217. ~#Javelin calculates values for Omaha
  218. ~&Total and shows them in the worksheet.
  219. ~%he formula you entered applies to the
  220. }    %whole row~
  221.  for Omaha Total, not just
  222. ~%to one cell. The formula computes the
  223. }%$variable's value for all dates in the
  224. model.
  225. &Copying Formulas
  226. ~&Instead of typing in a new formula for
  227. ~$Topeka Total, we'll copy the formula
  228. for Omaha Total.
  229. ~!First, show this worksheet in one
  230. window. Type:
  231. & $/' $W' $1'
  232.   DEFINE   CLEAR
  233. WINDOW   PRINT
  234. FILE 
  235. *WORKSHEET
  236. MENU 
  237. ~)Load, save, import, or delete disk files.
  238.  Adjust
  239.  Switch
  240.  2 windows
  241.  1 window
  242.  WINDOW
  243. Show only one window.
  244. -Feb 1986 Mar 1986 
  245. C&G Production
  246. READY
  247. ~4Omaha Total: Omaha Desks+Omaha Dressers+Omaha Tables
  248. To copy bot}
  249. $h the variable name and
  250. ~$the formula for a variable, you must
  251. ~$copy the border cell and a cell that
  252. contains the expression.
  253. ~$For example, to copy the formula for
  254. ~!Omaha Total, you must copy the ce
  255. ~"that contains the word Total and a
  256. worksheet cell in that row.
  257. ~"First, move the cursor to the left
  258. border by pressing:
  259.   Total
  260. ~%Then use the *Worksheet Copy command:
  261. & $/' $*' $C'
  262.   DEFINE   CLEAR
  263.  WINDOW }
  264.   PRINT
  265. *WORKSHEET
  266. MENU 
  267. Set up or change windows.
  268.  Name change
  269.  Import file .. 
  270.  Range ...
  271.  Border ...
  272.  Data copy
  273.  Copy
  274.  *WORKSHEET
  275.  Copy contents of cells. 
  276. -986 Jun 1986 Jul 1
  277. C&G Production
  278. READY
  279. POINT
  280. ~FSpecify range to copy from: move to corner of range and press . or 
  281. ~"At the top of the screen, the Copy
  282. ~"command prompts you to specify the
  283. range to copy from.
  284. }%$To specify the range, first anchor it
  285. ~ by typing a period (.) in the ce
  286. ~!where the range will begin. Type:
  287. ~8Press arrows to show range, then press 
  288.  to select it.
  289. ~#Now expand the range to include the
  290. ell to the right:
  291. ~%The cursor spreads over both cells in
  292. ~$the range you are copying. To finish
  293. specifying the range, press:
  294. READY
  295. POINT
  296. ~DSpecify range to copy to: move to corner of range and press . or 
  297. You specified the range to copy
  298. %from~
  299. ~%Javelin prompts you at the top of the
  300. $screen to enter a range to copy
  301.  $t%o%~
  302. ~%Move the cursor to the row just under
  303. Topeka Tables:
  304. '[End]
  305. ~)End: Press arrow key to select direction.
  306. WAIT 
  307. POINT
  308. ~DSpecify range to copy to: move to corner of range and press . or 
  309. Now watch the worksheet as you
  310. complete the command. Press:
  311. READY
  312. WAIT 
  313. Total
  314.    #CALC
  315. #CALC
  316. READY
  317. Total
  318. ~"The Copy command copies the border
  319. ~!cell and the expression for Omaha
  320. ~#Total to the last row under Topeka.
  321. ~"Calculate values for Topeka Total:
  322. '[F9]
  323. WAIT 
  324.   494
  325.   497
  326. READY
  327. The values for Topeka Total are
  328. ~%the same as those for Omaha Total. To
  329. ~"see why, move the cursor to one of
  330. ~"the cells for Topeka Total. Press:
  331. '[End]
  332. ~)End: Press arrow key to select direction.
  333. WAIT 
  334. READY
  335.   Total
  336. ~8Topeka Total: Topeka Desks+Topeka Dressers+Topeka Tables
  337. ~#Look at the information line at the
  338. ~#top of the screen. Topeka Total has
  339. } $the same formula as Omaha Total,
  340. except that all instances of
  341. %Omaha
  342. are replaced by }
  343. %Topeka~
  344. ~#To make the formula correct for the
  345. ~"new context under Topeka, Javelin 
  346. ~%changed Omaha to Topeka everywhere in
  347. $the formula. 
  348. This is one example of how the
  349. *Worksheet Copy command works.
  350. Any time you cop}
  351. $y calculated values
  352. ~ to a new context in a worksheet,
  353. ~!Javelin creates formulas that are
  354. ~!appropriate for the new context. 
  355. &Using Multiple Worksheets
  356. ~&The worksheet on your screen shows one
  357. ~ way to look at monthly furniture
  358. production.
  359. ~%By creating another worksheet, we can
  360. ~"look at the same formulas and data
  361. from a different perspective.
  362. ~%Because data is stored in the central
  363. base of}
  364. $ information -- and not in any
  365. ~!particular worksheet -- different
  366. ~"worksheets can show the same data.
  367. ~"Let's create a second worksheet to
  368. ~$show production figures. First split
  369. the screen into two windows:
  370.      $ $
  371. & $/' $W' $2'
  372.   DEFINE   CLEAR
  373. WINDOW   PRINT
  374.  *WORKSHEET 
  375. MENU 
  376. ~"Commands specific to current view.
  377.  Adjust
  378.  Switch
  379.  2 windows
  380.  1 window
  381.  WINDOW
  382. Show only one window.
  383. a second
  384. -Feb 1986 Mar 1986 
  385. C&G Production
  386. READY
  387.   Dressers
  388. Tables
  389. Total
  390. Topeka
  391. Desks
  392.   Dressers
  393. Tables
  394. Total
  395. C&G P
  396. -Jan 1986 Feb 1986 Mar 1
  397. Omaha
  398. Desks
  399. Dressers
  400. Tables
  401. Total
  402. Topeka
  403. Desks
  404. ~%Now switch to the top window and use 
  405. the View Worksheet comm
  406. to create 
  407. a worksheet called }
  408. %Items~
  409. '[F6]
  410. & $/' $V' $W' $}
  411. 'Items
  412. ~8Topeka Total: Topeka Desks+Topeka Dressers+Topeka Tables
  413.   DEFINE   CLEAR
  414.  WINDOW }
  415.   PRINT
  416. *WORKSHEET
  417. MENU 
  418. Set up or change windows.
  419.  Graph
  420.  Macro
  421.  Errors
  422.  Notes
  423.  Worksheet
  424.  Quick graph
  425.  Chart
  426.  Table
  427.  Formulas ...   
  428.  Diagram
  429.  VIEW
  430. Show diagram in current window.
  431. ~#Show a worksheet in current window.
  432. -an 1986 Feb 1986 M
  433. -an 1986 Feb 1986 M
  434. C&G Production
  435. ~ Worksheet name (C&G Production):
  436. READY
  437.  Items
  438. WAIT 
  439. READY
  440. ~"Javelin creates an empty worksheet
  441. called Items.
  442. ~$Each cell in the bottom worksheet is
  443. identified by three items:
  444.  The city name in the left border.
  445.  The item of furniture, indented
  446. $  beneath the city name.
  447.  The date in the top border.
  448. ~%The new worksheet will use these same
  449. ~#three items, organized differently.
  450. ~#In the new worksheet, we'll put the
  451. city names and dates in the top
  452. ~%border, and the items of furniture in
  453. the left border.
  454. ~"The worksheet in the bottom window
  455. ~&shows how to get two names in the left
  456. ~#border: indent one under the other.
  457. top border, instead of
  458. ~!indenting, you can enter names or
  459. ~%dates one above the other. To do so, 
  460. follow these steps:
  461. ~%1. Expand the top border to two rows.
  462. 2. Enter a heading in each row.
  463. roduction
  464. ~$First, expand the top border. Type: 
  465. & $/' $*' $B' $E'
  466.   DEFINE   CLEAR
  467. WINDOW   PRINT
  468.  *WORKSHEET 
  469. MENU 
  470. ~"Commands specific to current view.
  471.  Format
  472.  Sort ...
  473.  Exception
  474.  Name change
  475.  Import file .. 
  476.  Range ...
  477.  Border ...
  478.  Data copy
  479.  Copy
  480.  *WORKSHEET
  481. ~"  Change width of current column. 
  482.  Shrink border   
  483.  Expand border   
  484.  Remove border   
  485.  Insert border   
  486.  Variable names  
  487.  Dates
  488.  Border ...
  489. Enter dates in current border. 
  490.   Add a row to a top border.
  491.  Format
  492.  Sort ...
  493.  Exception
  494.  Name change
  495.  Import file 
  496.  Range ...
  497.  Border ...
  498.  Data copy
  499.  Copy
  500. Items
  501. READY
  502. ~#The top border expands to two rows.
  503. ~#Now you can enter cities in the top
  504. row, and dates beneath them.
  505.  To begin, enter Omaha as the heading   
  506.  for the first column. Type:
  507. 'Omaha
  508. Omaha
  509. Omaha
  510. Then enter a date below it:
  511. 'Jan86
  512. Jan 1986
  513. Jan 1986
  514. ~"To see the value of Omaha Desks in
  515. January, enter }
  516. %Desks~
  517.  in the left
  518. border. Type:
  519. 'Desks
  520. Desks
  521. Desks
  522. ~%Now watch the information line as you
  523. move the cursor to the number
  524.  $9%7%~
  525. Omaha Desks @ January 1986: 97
  526. At the top of the screen, the
  527. information lin}
  528. $e shows }
  529. %Omaha Desks
  530. %@ January 1986: 97~
  531. }!$Javelin combines the following to
  532. ~$determine what to show in this cell:
  533. %Omaha~
  534. , from the top border.
  535. %Jan 1986~
  536. , also from the top border.
  537. %Desks~
  538. , from the left border.
  539. ~"Let's see some more data. Move the
  540. cursor to the left bord}
  541. $er and enter
  542. Dressers}
  543. $ below Desks:
  544. 'Dressers
  545. Dressers
  546. Dressers
  547. ~!Javelin shows the value for Omaha
  548. ~"Dressers. Now press [Space] and I'
  549. ~$fill in the rest of the left border.
  550. Tables
  551. Total
  552. Total
  553. ~4Omaha Total: Omaha Desks+Omaha Dressers+Omaha Tables
  554. ~)End: Press arrow key to select direction.
  555. WAIT 
  556. READY
  557. ~%Javelin shows the values for the rest
  558. }!$of the Omaha variables in January
  559. 1986.
  560. }%$Now let's show the values for Topeka.
  561. Type Topeka in the top border:
  562. 'Topeka
  563. #NODATE
  564. #NODATE
  565. #NODATE
  566. #NODATE
  567. Topeka
  568. Topeka
  569. ~%You see the non-numeric value #NODATE
  570. ~#in place of the Topeka values. This
  571. ~%means that you have not yet specified
  572. ~ the date for which you want to s
  573. values of these variables.
  574. ~&You could specify the date by entering
  575. ~&January 1986 in the cell below Topeka.
  576. }#$You could also extend the date from
  577. the first column to the second.
  578. ~!Instead of repeating a top border
  579. ~&cell, you can just enter a hyphen (-).
  580. ~&The hyphen tells Javelin to extend the
  581. ext from a cell to the left.
  582. For example, to extend
  583. %Jan 1986~
  584.  acro
  585. ~!the second column (under Topeka),
  586. type:
  587. ' $-' $
  588. Jan 1986
  589. Javelin extends the heading
  590. %Jan 1986
  591. ~#over both columns. Now both columns
  592. show values for January 1986.
  593. ~#Notice that the two worksheets show
  594. ~$he same data, but in different ways.
  595. ~$Let's recap what you've done so far:
  596.  You created formulas on a}
  597. $ worksheet
  598.   using the POINT key, [F4].
  599.  You used the *Worksheet Copy command
  600. ~%  to copy a formula to a new context.
  601.  You built a second worksheet to show
  602. the same data.
  603. &Using the Corner of a Worksheet
  604. ~&So far you've seen how to use headings
  605. ~ in the left and the top borders.
  606. ~ You can also use headings in the
  607. ~#corner of a worksheet. A heading in
  608. ~$the corner cell affects all cells in
  609. the worksheet.
  610. Firs} $t, let's put the Items worksheet
  611. in one window. Type:
  612.      $ $
  613. & $/' $W' $1'
  614.   DEFINE   CLEAR
  615. WINDOW   PRINT
  616.  *WORKSHEET 
  617. MENU 
  618. ~"Commands specific to current view.
  619.  Adjust
  620.  Switch
  621.  2 windows
  622.  1 window
  623.  WINDOW
  624. Show a second window.
  625. only one
  626. -Topeka
  627. Items
  628. READY
  629. Jan 1986
  630. ~%Now change this worksheet so that the
  631. ~#date January 1986 is in the corner,
  632. instead of in the top border.
  633. ~%The first step is to remove the dates
  634. $from the top border. Use the
  635. ~#*Worksheet Border Shrink command to
  636. ~&shrink the top border down to one row.
  637. Type:
  638. & $/' $*' $B' $S'
  639.   DEFINE   CLEAR
  640.  WINDOW }
  641.   PRINT
  642. *WORKSHEET
  643. MENU 
  644. Set up or change windows.
  645.  Format
  646.  Sort ...
  647.  Exception
  648.  Name change
  649.  Import file .. 
  650.  Range ...
  651.  Border ...
  652.  Data copy
  653.  Copy
  654.  *WORKSHEET
  655. ~JInsert, remove, expand, shrink, enter dates or variable names in a border.
  656.  Shrink border   
  657.  Expand border
  658.  Remove border   
  659.  Insert border   
  660.  Variable names  
  661.  Dates
  662.  Border ...
  663.  Add a row to a top border.
  664. Remove a row from a top border.
  665.  Format
  666.  Sort ...
  667.  Exception
  668.  Name change
  669.  Import file 
  670.  Range ...
  671.  Border ...
  672.  Data copy
  673.  Copy
  674. Items
  675. READY
  676. Desks
  677. #NODATE
  678. #NODATE
  679. ressers
  680. #NODATE
  681. #NODATE
  682. Tables
  683. #NODATE
  684. #NODATE
  685. #NODATE
  686. #NODATE
  687. Topeka Desks:  Monthly data.
  688.  The Border Shrink command is the
  689.  reverse of the Border Expand command   
  690. ~% you used earlier. It shrinks the top
  691. border to one row, deleting
  692. that had the dates.
  693. ~"With the dates gone, the worksheet
  694. ~"shows #NODATE everywhere. You must
  695. ~$specify a date for all the values in
  696. $the worksheet.
  697. ~"Enter the date in the corner cell.
  698. ~ Watch the worksheet as you type:
  699. '[Home]
  700. 'Jan86
  701. Jan 1986
  702. Jan 1986
  703. ~#The corner cell affects every value
  704. in the worksheet. You see a
  705. %snapshot
  706. ~$of the model at a single date -- the
  707. worksheet shows the values of a
  708. ~$variables at a single point in time.
  709. ~%If you change the date, the worksheet
  710. ~$shows values for the new date. Type:
  711. 'Feb86
  712. Feb 1986
  713. ~%Now the worksheet shows the values of
  714. all variables in February 1986.
  715. ~&You can also type a yearly date in the
  716. corner.
  717. ~&Since worksheets automatically convert
  718. }#$values to any date, simply entering
  719. 1986 in the corner causes the
  720. ~%worksheet to show 1986 totals. Type: 
  721. '1986
  722. ~&Javelin adds up the monthly production
  723. ~ values, and shows you total 1986
  724. production.
  725. So far, you've seen how to
  726.  names
  727. ~!and dates in the left border, top
  728. ~$border, and corner of the worksheet.
  729. ~&In the next section, you'll see how to
  730. }#$enter labels that do not affect the
  731. values shown in a worksheet.
  732. &Labels
  733. A$ $}
  734. %label~
  735.  is text you add to a
  736. ~$worksheet. Unlike the variable names
  737. ~$in the borders, labels do not affect
  738. ~#the numbers shown in the worksheet.
  739. ~&You can use labels to add comments or 
  740. ~#titles without changing the numbers
  741. ~%and variables shown on the worksheet.
  742. ~%For example, suppose you want the top
  743. $left corner to show
  744.  $}    %86 Totals~
  745.  instead
  746. o$f$ $}
  747. %1986~
  748. ~!If you just typed the text in the
  749. ~$cell, Javelin would try to interpret
  750. ~%the text as part of a variable name. 
  751. ~!To indicate that you are typing a
  752. ~#label, and not a variable name or a
  753. date, you type a }
  754. %label-prefix~
  755. }$$front of the label. The label-prefix
  756. can be any of the following:
  757. '$ $ $}
  758. %apostrophe~
  759. : left-justified label 
  760. "$ $ $}
  761. %double quote~
  762. : right-justified label
  763. ^$ $ $}
  764. %caret~
  765. : centered label
  766. \$ $ $}    %backslash~
  767. : repeating label
  768. ~"For example, to put a label in the
  769. ~!top left corner cell, first press
  770. the EDIT key:
  771. '[F2]
  772. ~%This puts the contents of the cell on
  773. ~%the edit line. Add a label by typing:
  774. '[End]
  775. ''86 Totals
  776. ~    86 Totals
  777. 1986'86 Totals
  778. ~"The numbers do not change when you
  779. ~"enter the label. The label affects
  780. ~"only what is shown in the top left
  781. cell.
  782. ~"The label hides the date 1986. The
  783. date is still there, however,
  784. ~%controlling the values you see in the
  785. rest of the worksheet.
  786. &Inserting Borders
  787. ~&Another way to control what you see on
  788. ~&a worksheet is to divide the worksheet
  789. ~#into separate regions by adding new
  790. sets of borders.
  791. ~%For example, suppose you want to show
  792. ~$both the January 1986 values and the
  793. 1986 totals.
  794. ~&You could show the January 1986 values
  795. ~#in a second worksheet, or you could
  796. ~"change the headings in the current
  797. worksheet.
  798. ~"You could also add a second set of
  799. ~!borders to the current worksheet.
  800. an insert a new set of borders
  801. anywhere on the worksheet.
  802. ~$For this example, move the cursor to
  803. ~$the cell just below the names in the
  804. left border. Press:
  805. '[End]
  806. ~)End: Press arrow key to select direction.
  807. WAIT 
  808. READY
  809. 1986'86 Totals
  810. Total
  811. ~%Now create a new set of borders using
  812. ~%the *Worksheet Border Insert command.
  813. Type:
  814. & $/' $*' $B' $I'
  815.   DEFINE   CLEAR
  816. WINDOW   PRINT
  817.  *WORKSHEET 
  818. MENU 
  819. ~"Commands specific to current view.
  820.  Name change
  821.  Import file .. 
  822.  Range ...
  823.  Border ...
  824.  Data copy
  825.  Copy
  826.  *WORKSHEET
  827. ~JInsert, remove, expand, shrink, enter dates or variable names in a border.
  828.  Remove border   
  829.  Insert border   
  830.  Variable names  
  831.  Dates
  832.  Border ...
  833. Remove a row from a top border.
  834. ~#Insert a new border into worksheet.
  835.  Name change
  836.  Import file 
  837.  Range ...
  838.  Border ...
  839.  Data copy
  840.  Copy
  841. Items
  842. READY
  843. WAIT 
  844. READY
  845. ~$Javelin inserts a new set of borders
  846. ~!at the cursor. The new horizontal
  847. ~%border separates the 1986 totals from
  848. the rest of the worksheet.
  849. ~#The new set of borders controls the
  850. cells below it.
  851. ~"The next step is to put the cities
  852. }!$and items of furniture in the new
  853. borders.
  854. Press [Space] and I'll use the
  855. ~#*Worksheet Copy command to copy the
  856. ~"names from the top set of borders.
  857. 1986'86 Totals
  858. Desks
  859.   DEFINE   CLEAR
  860. WINDOW   PRINT
  861.  *WORKSHEET 
  862. MENU 
  863. ~"Commands specific to current view.
  864.  Name change
  865.  Import file .. 
  866.  Range ...
  867.  Border ...
  868.  Data copy
  869.  Copy
  870.  *WORKSHEET
  871. ~JInsert, remove, expand, shrink, enter dates or variable names in a border.
  872. Copy contents of cells.
  873. Items
  874. READY
  875. POINT
  876. ~FSpecify range to copy from: move to corner of range and press . or 
  877. ~8Press arrows to show range, then press 
  878.  to select it.
  879. READY
  880. POINT
  881. ~DSpecify range to copy to: move to corner of range and press . or 
  882. ~)End: Press arrow key to select direction.
  883. WAIT 
  884. POINT
  885. ~DSpecify range to copy to: move to corner of range and press . or 
  886. READY
  887. WAIT 
  888. Desks
  889. Dressers
  890. Tables
  891. Total
  892. READY
  893. Desks
  894. ~"Omaha Desks @ 1986:  Monthly data.
  895.   DEFINE   CLEAR
  896. WINDOW   PRINT
  897.  *WORKSHEET 
  898. MENU 
  899. ~"Commands specific to current view.
  900.  Name change
  901.  Import file .. 
  902.  Range ...
  903.  Border ...
  904.  Data copy
  905.  Copy
  906.  *WORKSHEET
  907. Copy contents of cells.
  908. Items
  909. READY
  910. POINT
  911. ~FSpecify range to copy from: move to corner of range and press . or 
  912. ~8Press arrows to show range, then press 
  913.  to select it.
  914. READY
  915. POINT
  916. ~DSpecify range to copy to: move to corner of range and press . or 
  917. ~)End: Press arrow key to select direction.
  918. WAIT 
  919. POINT
  920. ~DSpecify range to copy to: move to corner of range and press . or 
  921. READY
  922. WAIT 
  923. Omaha
  924. Topeka
  925. #NODATE
  926. #NODATE
  927. #NODATE
  928. #NODATE
  929. #NODATE
  930. #NODATE
  931. #NODATE
  932. #NODATE
  933. READY
  934. Omaha
  935. ~)End: Press arrow key to select direction.
  936. WAIT 
  937. READY
  938. Omaha
  939. cursor is in the corner of the 
  940. ~"new set of borders. Since you have
  941. not yet entered a date, you s
  942. #NODATE in place of all
  943. values.
  944. Now enter the date
  945. %January 1986~
  946.  in the
  947. ~!corner of the new set of borders.
  948. Type:
  949. 'Jan86
  950. Jan 1986
  951. Jan 1986
  952. ~#You see the January 1986 values for
  953. all the variables. The date you
  954. entered in the corner affects
  955. everything in the lower set of
  956. borders.
  957. ~#With extra sets of borders, you can
  958. ~"divide your worksheet into as many
  959. ~"separate regions as you want. Each
  960. }&$region behaves like its own worksheet.
  961. &Exception Cells
  962. ~$Ordinarily, Javelin uses the borders
  963. ~$to determine what to show in a cell.
  964. %Exception cells~
  965.  break this rule. When
  966. ~$you create an exception cell, you te
  967. Javelin to show something }
  968. %other than
  969. what the borders indicate.
  970. There are two ways to create an
  971. ~    exception}
  972. $ cell:
  973.  Enter a complete formula in a
  974.   worksheet cell. The formula
  975. ~!becomes part of the model; the ce
  976. }!$  shows the variable you defined.
  977.  Use the *Worksheet Excep}
  978. $tion
  979.   command.
  980. ~%Let's create an exception cell at the
  981. bottom of the worksheet to show
  982. overall total production.
  983. ~#Move the cursor to a cell below the
  984. last row of values. Type:
  985. '[End]
  986. ~)End: Press arrow key to select direction.
  987. WAIT 
  988. READY
  989. Jan 1986
  990. Total
  991. Now enter the formula for Total
  992. ~%Production. When you enter a formula 
  993. ~$in a worksheet cell, Javelin creates
  994. ~"an exception cell for the formula.
  995. Watch the top line as you type:
  996. 'Total Production=
  997. & $O'm'a' $}
  998.  $T'o't' $}
  999. +' $T'o'p' $}
  1000.  $T'o't' $}
  1001. WAIT 
  1002. READY
  1003. WAIT 
  1004.  Omaha Total
  1005.  Omaha Tables   
  1006.  Omaha Dressers 
  1007.  Omaha Desks
  1008.  POSSIBILITIES  
  1009. READY
  1010. WAIT 
  1011. -  Omaha
  1012. -Tope
  1013.    4866
  1014.    2306
  1015.    1531
  1016.    1029
  1017. -  Omaha
  1018. -Tope
  1019. READY
  1020. WAIT 
  1021. READY
  1022. WAIT 
  1023. READY
  1024. WAIT 
  1025.  Topeka Total
  1026.  Topeka Tables   
  1027.  Topeka Dressers 
  1028.  Topeka Desks
  1029.  POSSIBILITIES   
  1030. READY
  1031. WAIT 
  1032. -  Topeka
  1033. -  Topeka
  1034. Items
  1035. READY
  1036. WAIT 
  1037. READY
  1038. #CALC
  1039. ~*Total Production: Omaha Total+Topeka Total
  1040. ~$Javelin creates an exception cell at
  1041. ~$the cursor. The exception cell shows
  1042. ~##CALC. To calculate the model, pres
  1043. the CALC key:
  1044. '[F9]
  1045. WAIT 
  1046. #NODATE
  1047. READY
  1048. ~%Now the exception cell shows the non-
  1049. numeric value #NODATE.
  1050. ~$By entering the formula, you created
  1051. an exception cell to show Total
  1052. ~ Production. However, you did not
  1053. ~$specify for which date to show data.
  1054. ~%The date in the corner of the borders
  1055. ~%does not apply, since exception cells
  1056. ignore worksheet borders.
  1057. ~"To add a date to the definition of
  1058. the exception cell, use the
  1059. ~#*Worksheet Exception command. Type:
  1060. & $/' $*' $E'
  1061.   DEFINE   CLEAR
  1062. WINDOW   PRINT
  1063.  *WORKSHEET 
  1064. MENU 
  1065. ~"Commands specific to current view.
  1066.  Width
  1067.  Format
  1068.  Sort ...
  1069.  Exception
  1070.  Name change
  1071.  Import file .. 
  1072.  Range ...
  1073.  Border ...
  1074.  Data copy
  1075.  Copy
  1076.  *WORKSHEET
  1077. Copy contents of cells.
  1078. ~!Create or edit an exception cell.
  1079. Items
  1080. READY
  1081. Cell should show:
  1082. Total Production
  1083.  The edit line shows the current
  1084.  definition of the exception cell:
  1085. %Total Production}
  1086. $, with no date
  1087.  specified.
  1088. specify a date for an exception
  1089. cell, add }
  1090. %@ date~
  1091.  at the end of the
  1092. cell's definition. Type:
  1093. '[End]
  1094.  $@' $}
  1095. 'Jan86
  1096. ~*Total Production: Omaha Total+Topeka Total
  1097. ~&Now the exception cell shows the value
  1098. }$$of Total Production in January 1986.
  1099. ~"As it stands now, the exception ce
  1100. just looks like a number in the
  1101. worksheet.}
  1102. $ Let's enter a label to 
  1103. help identify it.
  1104. ~%Move the cursor one cell to the left:
  1105. ~!Now type a double quote ("), then
  1106. ~"enter the label. (The double quote
  1107. ~$right-justifies the label within the
  1108. cell.) Type:
  1109. '"TOTAL:
  1110. TOTAL:
  1111. "TOTAL:
  1112. $Javelin shows the label right-
  1113. ~ justified in the worksheet cell.
  1114. ~%The label helps identify the value in
  1115. ~ the exception cell as an overall
  1116. total.
  1117. &Summary
  1118.  In this case study, you:
  1119.  Entered and copied formulas in a worksheet.
  1120.  Looked at the same data in two worksheets.
  1121.  Used several methods to combine variable names and
  1122.    dates in the borders, including:
  1123.  $}%$
  1124.  Indenting names in the left border.
  1125.  $}3$
  1126.  Expanding the top border to include two headings.
  1127.  $}%$
  1128.  Entering a date in the corner cell.
  1129.  Entered labels and exception cells.
  1130. Related Case Studies:
  1131.  $ $}#%Importing Data into a Javelin Model~
  1132.  shows you how to
  1133. ~3import a Lotus 1-2-3 file into a worksheet, and how
  1134. ~2  to import information from other Javelin models.
  1135.  $ $}$%Entering Data and Formatting Numbers~
  1136.  shows several
  1137. ~1ways to use numeric formats, including formatting
  1138.   numbers in worksheets.
  1139. ~6If you want to learn more about using worksheets, read
  1140. Chapter 12, }
  1141. %Javelin Worksheets~
  1142. , in the Javelin
  1143. ~0Reference Manual. Chapter 12 contains a complete
  1144. ~3description of worksheet features with examples and
  1145. suggestions for using them.
  1146.